package com.eobjectsoft.etranslator;

import java.util.Hashtable;

public class Charsets
{

	/**
	 * keep all supported charsets
	 */
	static Hashtable<String, String> charsets;
	static 
    {
        charsets = new Hashtable<String, String>();
        charsets.put("ar", ETranslatorResources.getString("charset.ar"));
        charsets.put("en", ETranslatorResources.getString("charset.en"));
        charsets.put("zh-CN", ETranslatorResources.getString("charset.zh-CN"));
        charsets.put("zh-TW", ETranslatorResources.getString("charset.zh-TW"));
        charsets.put("fr", ETranslatorResources.getString("charset.fr"));
        charsets.put("de", ETranslatorResources.getString("charset.de"));
        charsets.put("it", ETranslatorResources.getString("charset.it"));
        charsets.put("ja", ETranslatorResources.getString("charset.ja"));
        charsets.put("ko", ETranslatorResources.getString("charset.ko"));
        charsets.put("pt", ETranslatorResources.getString("charset.pt"));
        charsets.put("ru", ETranslatorResources.getString("charset.ru"));
        charsets.put("es", ETranslatorResources.getString("charset.es"));
    }
	
    public Charsets()
    {
    }

    public static String getCharsetLable(String charset)
    {
        if(charsets.containsKey(charset))
            return (String)charsets.get(charset);
        else
            return "unknow charset:" + charset;
    }

    

    
}
